import { createApp } from 'vue'
import App from './App.vue';
import ZUI from '../packages/index';
import router from './router';
// 引入全局样式
import './styles/index.scss';
import '~/iconfont/iconfont.css';

import hljs from "highlight.js";
import "highlight.js/styles/color-brewer.css";
const app = createApp(App);
app.directive("highlight", function (el) {
  const blocks = el.querySelectorAll("pre code");
  blocks.forEach((block: any) => {
    hljs.highlightBlock(block);
  })
})

app.use(ZUI);
app.use(router)
app.mount('#app');
